import { normalizeContainer } from '../../../../global_comps/Func/normalizeContainer';
import { get_keyVal_node_id } from '../../../../global_comps/uni_comps/keyVal_node/Func/get_keyVal_node_id';
import type { upload_operate } from '../../../Classes/cla_upload_operate';
import {
  upload_file_body,
  upload_file_form_file,
  upload_file_inp,
  upload_file_load_cancel,
  upload_file_load_change,
  upload_file_placeholder_load,
  upload_file_placeholder_up,
} from '../DataDefine/sourceData';

const upload_file_staticNodeTag = 'upload_file_staticNode';

export class upload_file_staticNode {
  get [Symbol.toStringTag]() {
    return upload_file_staticNodeTag;
  }

  constructor() {}

  /**
   * 上传 文件 主体
   */
  dom_body = normalizeContainer(upload_file_body)!;

  /**
   * 值 元素 —— 文件
   */
  dom_keyVal_file: HTMLInputElement = normalizeContainer(
    upload_file_inp
  )! as any;

  /**
   * 元素
   *
   * 待 文件 选中
   */
  dom_placeholder_up = normalizeContainer(upload_file_placeholder_up)!;

  /**
   * 元素
   *
   * 文件 选中
   */
  dom_placeholder_load = normalizeContainer(upload_file_placeholder_load)!;

  /**
   * 元素
   *
   * 文件 选中
   *
   * 操作 -- 重选
   */
  dom_placeholder_operate_change = normalizeContainer(upload_file_load_change)!;

  /**
   * 元素
   *
   * 文件 选中
   *
   * 操作 -- 取消 上传 文件
   */
  dom_placeholder_operate_cancel = normalizeContainer(upload_file_load_cancel)!;

  /**
   * upload 的 操作集 暂 未 绑定
   */
  father_operate_obj?: upload_operate;
}
